//
//  YPKDefine.h
//  Yopark
//
//  Created by 王家骏 on 14/10/31.
//  Copyright (c) 2014年 developer. All rights reserved.
//

#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
//宽度和高度
#define SCREEN_WIDTH                    [[UIScreen mainScreen] bounds].size.width
#define SCRENN_HEIGHT                   [[UIScreen mainScreen] bounds].size.height
#define STATUS_BAR_HEIGHT               (20.f)
#define NAVIGATION_BAR_HEIGHT           (44.f)
#define TAB_BAR_HEIGHT                  (49.f)
#define CELL_DEFAULT_HEIGHT             (44.f)

//文件路径
#define PATH_OF_APP_HOME                NSHomeDirectory()
#define PATH_OF_TEMP                    NSTemporaryDirectory()
#define PATH_OF_DOCUMENT                [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]
#define PATH_OF_CACHES                  [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0]

//判断设备系统
#define CURRENT_SYSTEM_VERSION          [[[UIDevice currentDevice] systemVersion] floatValue]

//设备类型、设备系统、设备ID
#define   DEVICETYPE [UIDevice currentDevice].model
#define   OSVERSION [NSString stringWithFormat:@"%@ %@",[UIDevice currentDevice].systemName,[UIDevice currentDevice].systemVersion]
#define   DEVICEID [[UIDevice currentDevice] identifierForVendor].UUIDString


//判断字符串是否为空
#define IS_EMPTY_STRING(x)              (IS_NULL(x) || [x isEqual:@""] || [x isEqual:@"(null)"])

//判断字符串是否是“0”
#define NSStringZero(x)               [x isEqualToString:@"0"]

#define NSStringFromInt(int)            [NSString stringWithFormat:@"%d", int]
#define NSStringFromFloat(float)        [NSString stringWithFormat:@"%f", float]
#define NSStringFromNSInteger(integer)  [NSString stringWithFormat:@"%ld", (long)integer]






//------------
#define CityId @"310100"
#define APP_ID @"979824087"

//shareSDK
#define SHARESDK_APPKEY @"4283e7c52327"
#define SHARESDK_APPSECRET @"b171a3102b7d0b6270f705fc4cbebc99"

//新浪微博
#define SINAWEIBO_APPKEY @"135720139"
#define SINAWEIBO_APPSECRET @"7f192d86b202c2bbcfd8500e32122af8"

//腾讯微博
#define TENCENTWEIBO_APPKEY @"801550794"
#define TENCENTWEIBO_APPSECRET @"c75252dcae26edcb12f6d35c0d5965dd"

//QQ空间
#define QZONE_APPKEY @"1103447277"
#define QZONE_APPSECRET @"RpA29Jim7sx01avc"

//微信
#define WECHAT_APPKEY @"wxefc316b0396b1762"
#define WECHAT_APPSECRET @"1fa8f23a6dcebfb8f0f813a19b6e8a1a"


//---------------------------颜色----------------------------
//首页
#define HOMEPAGE_NAVIGATION_COLOR @"1b2b3b"
#define NAVIGATION_COLOR @"dddddd"
#define TABBAR_TEXT_COLOR_NOMAL @"909090"
#define TABBAR_TEXT_COLOR_SELECT @"deb239"
#define LEASETYPE_BUTTON_BACKCOLOR @"daaa27"
//找房
#define SEARCH_TITLE_BACK_COLOR @"c6c4c5"

